<template>
  <router-view/>
</template>

<script>
export default {
  name: "App",
  data(){
    return{
    }
  },
  mounted() {
    this.login();
  },
  methods:{
    login(){
      let isOk = localStorage.token
      if (isOk != null){
        this.$router.push('Home')
      }else {
        this.$router.push("login")
      }

    }
  }
}
</script>
